import React, { Suspense } from 'react'
import Router from './router'
import './App.css'
import store from './store'
import { Provider } from 'react-redux'
import Loading from './components/loading'
// 函数组件
const App: React.FC = () => {
  return (
    <Provider store={store}>
      <Suspense fallback={ <Loading></Loading> }>
        <Router></Router>
      </Suspense>
    </Provider>
  )
}

export default App